
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <link rel="stylesheet" th:href="@{/css/bootstrap-5.3.0-alpha1-dist/css/bootstrap.min.css}">
    <script th:src="@{/js/jquery-3.5.1.js}"></script>
    <script th:src="@{/js/bootstrap4.1.3.main.js}"></script>
    <script th:src="@{/js/bootstrap.bundle.js}"></script>
    <link th:href="@{/css/Mreturn.css}" rel="stylesheet">
    <title>Document</title>
</head>
<body>
<div class="container1" >
    <marquee width="100%">
        <span style="color: lightcoral">原价:1元1小时,50元55小时，100元110小时。vip会员价:0.8元一小时,50元63小时，100元126小时。</span>
    </marquee>
    <marquee direction="right" width="100%">
        <span style="color: lightcoral">原价:15元一次，50元四次，100元八次。vip会员价:10元一次。每月仅需30元，即可成为vip会员！</span>
    </marquee>
</div>
<div class="container" th:object="${Result?.data}">
    <br>
    <h3> 欢迎来到充值页面！</h3>
    <form action="../MonUserRechange" method="post">
        <h5>账号: <input readonly="readonly" id="tel" th:value="*{tel}"></input></h5>
        <h5>您的余额还剩:<td id="money" th:text="*{money}+'元'"></td></h5>
        <br>
        <label>请选择充值金额:</label>
        <button class="btn btn-secondary" type="button" value="10">10元</button>
        <button class="btn btn-secondary" type="button" value="20">20元</button>
        <button class="btn btn-secondary" type="button" value="30">30元</button>
        <button class="btn btn-secondary" type="button" value="50">50元</button>
        <button class="btn btn-secondary" type="button" value="100">100元</button>
        <button class="btn btn-secondary" type="button" value="0">其它</button>
        <br><br>
        <div>
            <input id="oldmoney"  type="hidden" th:value="*{money}">

            <input class="return" id="remoney"  placeholder="请输入充值金额" >
            <button id="btn01" type="button">充值</button>
        </div>
    </form>
</div>
</body>
<script>
    $(".btn").on("click", function () {
        $(".return").attr("value", "")
        var value = $(this).attr("value");
        if (value == 0) {
            $(".return").attr("placeholder", "请输入充值金额:");
            $(".return").focus();
        } else $(".return").attr("value", value);
    });
</script>
<script th:src="@{/js/userrecharge.js}"></script>
</html>